#include "MagObject.h"
#include "Magnet.h"

MagObject::MagObject(Magnet* mag)
{
	this->mag = mag;
	RECT temp = {0,0,0,0};
	SetHitBox( temp );
	objectID = "Magnet";
	tag = "Magnet";
}


MagObject::~MagObject(void)
{

}

void MagObject::HandleCollision(GameObject& other, CollisionInfo& info)
{
	if(other.GetObjectID() == "Metal Box" || other.GetObjectID() == "Radiation Barrel" )
		mag->AttachObject(&other);
}